/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.opgea.token.domain.entities;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 * 
 * @author Ramesh
 */
@Embeddable
public class Name implements Serializable {

    private static final long serialVersionUID = 1201047628906224219L;
    private String firstName;
    private String middleInitial;
    private String lastName;

    public Name() {
    }

    public Name(String firstName, String middleInitial, String lastName) {
	this.firstName = firstName;
	this.middleInitial = middleInitial;
	this.lastName = lastName;
    }

    public String getFirstName() {
	return firstName;
    }

    public void setFirstName(String firstName) {
	this.firstName = firstName;
    }

    public String getLastName() {
	return lastName;
    }

    public void setLastName(String lastName) {
	this.lastName = lastName;
    }

    public String getMiddleInitial() {
	return middleInitial;
    }

    public void setMiddleInitial(String middleInitial) {
	this.middleInitial = middleInitial;
    }

    @Override
    public String toString() {
	return "Name{" + "firstName=" + firstName + ", middleInitial="
		+ middleInitial + ", lastName=" + lastName + '}';
    }

}
